import { initApi } from './api';
import { initCanvas } from './canvas'
import { initEvents } from './events'
import { initWay } from './way'
import { initButton } from './button'
import { initUtils } from './utils'

export function initModules(vm) {
  const apiMethods = initApi(vm);
  const canvasMethods = initCanvas(vm);
  const eventMethods = initEvents(vm);
  const wayMethods = initWay(vm);
  const buttonMethods = initButton(vm);
  const utilsMethods = initUtils(vm);
  return {
    ...apiMethods,
    ...canvasMethods,
    ...eventMethods,
    ...wayMethods,
    ...buttonMethods,
    ...utilsMethods
  };
}
